package com.qf.springbootexam.config;

import org.apache.shiro.realm.Realm;
import org.apache.shiro.spring.web.config.DefaultShiroFilterChainDefinition;
import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ShiroConfig {

    @Bean
    public ShiroFilterChainDefinition shiroFilterChainDefinition(){
        final DefaultShiroFilterChainDefinition definition = new DefaultShiroFilterChainDefinition();




        return definition;
    }
    @Bean
    public Realm realm(){
        final CustomRealm customRealm = new CustomRealm();
        return customRealm;
    }
}
